package com.zlz.m3u8download.service;

import com.zlz.m3u8download.bean.RunTimeTask;
import com.zlz.m3u8download.bean.TaskCacheResult;
import com.zlz.m3u8download.bean.entity.CacheM3u8Entity;

/**
 * @Author: zhulinzhong
 * @Date: 2024/11/29
 */
public interface TaskService {

    TaskCacheResult startTaskForPlay(CacheM3u8Entity cacheM3u8, Long userId);

    String stopTask(Long taskId);

    boolean execute(RunTimeTask task);

    void taskStatus(Long taskId);
}
